package com.windea.study.springcloud.ribbon.controller;

import com.windea.study.springcloud.ribbon.service.HelloService;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {
	private final HelloService helloService;

	public HelloController(HelloService helloService) {
		this.helloService = helloService;
	}

	@GetMapping("/hello")
	public String hello(@RequestParam String name) {
		return helloService.hello(name);
	}
}
